#include "./task/task.h"
#include "./led/bsp_led.h" 




volatile unsigned long g_SysTick[MAX_TIMER];


void Task_init(void)
{
    for(int i = 0;i < MAX_TIMER;i++)
    {
        g_SysTick[i] = 0;
    }
}

void Task_loop(void)
{
    Task_led1();
    Task_led2();
    Task_led3();
}


static void Task_led1(void)
{
    if(led1Timer) 
    
    return;
    
    led1Timer = 1000 * SysTick_SEC;
    LED1_TOGGLE;
}

static void Task_led2(void)
{
    if(led2Timer) 
    
    return;
    
    led2Timer = 2000 * SysTick_SEC;
    LED2_TOGGLE;
}

static void Task_led3(void)
{
    if(led3Timer) 
    
    return;
    
    led3Timer = 3000 * SysTick_SEC;
    LED3_TOGGLE;
}
